define(function(require, exports, module) {

  var Backbone = require('backbone');
  var $ = require('jquery');
  var _ = require('underscore');
  var jsonview = require('jsonview');

  require('./primus')

  function main() {
    var $app = $('<div id="app">');
    $('#main').html($app);

    // var url = 'http://10.1.60.251/chatops/api/v2/chat/snapper'
    var url = 'http://chatops.uyundev.cn'

    var primus = Primus.connect(url);

    primus.on('open', function open() {
      console.log('Connection is alive and kicking');
    });

    primus.on('open', function(data) {
      console.log(data)
    })

  }

  return main;
})
